﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace DXApplication1月报表
{
    public partial class XtraForm菜单 : DevExpress.XtraEditors.XtraForm
    {
        public XtraForm菜单()
        {
            InitializeComponent();
        }

        private void simpleButton报表查询_Click(object sender, EventArgs e)
        {
            Form form = new Form1();
            form.ShowDialog();
        }

        private void simpleButton用户管理_Click(object sender, EventArgs e)
        {
            //如果不是IT部门，就不能打开
            if (Program.部门.ToUpper() != "IT" && Program.部门.ToUpper() != "总经理")
            {
                //提示没权限
                XtraMessageBox.Show("没有权限");
                return;
            }

            Form form = new XtraForm用户管理();
            form.ShowDialog();
        }

        private void simpleButton半成品查询_Click(object sender, EventArgs e)
        {
            XtraForm半成品查询 form = new XtraForm半成品查询();
            form.ShowDialog();
        }

        private void XtraForm菜单_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void simpleButtonMESU8项目号对照_Click(object sender, EventArgs e)
        {
            XtraFormMES_U8项目号对照 form = new XtraFormMES_U8项目号对照();
            form.ShowDialog();
        }
    }
}